using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace DoodleJump3
{
    abstract class Button
    {
        private Texture2D texture;
        private Vector2 position;

        public Button(Texture2D texture, Vector2 position)
        {
            this.texture = texture;
            this.position = position;
        }
        
        public Texture2D getTexture()
        {
            return texture;
        }

        public Vector2 getPosition()
        {
            return position;
        }

        public void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(texture, position, Color.White);
        }

        //Button action when pressed
        public abstract void action();
    }
}
